feudal_governments = {

	viceroy_government = {
		preferred_holdings = { CASTLE }
		allowed_holdings = { 
			CASTLE 
			FORT
			HOSPITAL
		}
		allowed_holdings_culture = { # Will not get the wrong government type penalty for tribes of the same culture
			TRIBAL
		}
		accepts_liege_governments = { # Gets the wrong religion modifier instead
			muslim_government
			theocratic_feudal_government
			chinese_imperial_government
			feudal_government
			merchant_republic_government
		}
		free_revoke_on_governments_religion = { # Tribal vassals of other religions can have their titles revoked for free
			tribal_government
		}
		frame_suffix = "_viceroyalty"
		potential = {
			clan = no
			is_nomadic = no
			any_demesne_title = {
				is_vice_royalty = yes
			}
			OR = {
				controls_religion = no
				religion_group = muslim
				has_religion_feature = religion_temporal_head
				AND = {
					religion = norse_pagan_reformed
					has_religion_features = no # Old saves, and campaigns without HF, need the Fylkirate to continue working
				}
			}
			NOT = {	religion_group = muslim	}
			NOT = { is_government_potential = roman_imperial_government }
			NOT = { is_government_potential = order_government }
			NAND = { 
				culture_group = tibetan_group
				OR = {
					religion = bon
					religion = bon_reformed
					religion = buddhist
				}
				higher_tier_than = BARON
			}
			NAND = { 
				tier = EMPEROR
				primary_title = { has_title_flag = pretender_chinese_empire }
				OR = {
					culture_group = chinese_group
					culture = khitan
					culture = tangut
					culture = jurchen
					has_character_flag = chinese_imperial_government_preserve
				}
			}
			is_patrician = no
		}
		
		color = { 219 237 21 }
		
		dukes_called_kings = yes
		barons_need_dynasty = yes
		
		vassal_government_opinion_penalties = no

		can_build_tribal = no
		
		ignore_in_vassal_limit_calculation = {
			tribal_government
		}
		capital_move_delay = 600

		## Modifiers
		court_size_modifier = 10
	}
}